package cn.uin.domain.oss.model.valobj;

import cn.uin.domain.auth.model.valobj.RegisterTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @ClassName BucketTypeEnum
 * @Description:存储桶类型枚举
 * @Author: Administrator
 * @CreateDate: 2025/11/4 16:19
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum BucketTypeEnum {

	HEAD_IMAGE(1, "head-image"), //头像Bucket

	;
	private Integer code;
	private String info;

	public static BucketTypeEnum get(Integer code) {
		switch (code) {
			case 1:
				return HEAD_IMAGE;
			default:
				throw new RuntimeException("err code!");
		}
	}

}
